package com.imau.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_teacher")
public class Teacher implements Serializable {

    @TableId(type=IdType.ASSIGN_ID)
    private String tid;

    @TableField(exist = false)
    //部门主键id编号;数据库；实现1对多；懒加载
    private  Department dept;

    private String name;

    private String sex;

    private String national;

    private String idCard;


    private Date birthday;

    private String address;

    private String  phone;

    private String education;
    private String degree;
    private String partisan;

    private Date graduationDate;

    private String graduation_school;
    private String  major;

    private String  jobTitle;
    private String   achievements;
    private String   teacherPhoto;
    private String  teacherRemark;
    private Date workTime;

}


